﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Student_Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="FormStudentRegister" runat="server">
        学号：<asp:TextBox ID="StuId" runat="server"></asp:TextBox>*
        <asp:RequiredFieldValidator ControlToValidate="StuId" ID="StuIdRequiredFieldValidator" runat="server" ErrorMessage="请输入您的学号。"></asp:RequiredFieldValidator><br />
        真实姓名：<asp:TextBox ID="Name" runat="server"></asp:TextBox>*
        <asp:RequiredFieldValidator ControlToValidate="Name" ID="NameRequiredFieldValidator" runat="server" ErrorMessage="请输入您的真实姓名。"></asp:RequiredFieldValidator><br />
        密码：<asp:TextBox ID="Password" TextMode="Password" runat="server"></asp:TextBox>*
        <asp:RequiredFieldValidator ControlToValidate ="Password" ID="PasswordRequiredFieldValidator" runat="server" ErrorMessage="请输入您的密码。"></asp:RequiredFieldValidator><br />
        确认密码：<asp:TextBox ID="Repassword" TextMode="Password" runat="server"></asp:TextBox>*
        <asp:CompareValidator ID="PassswordCompareValidator" ControlToCompare="Password" ControlToValidate="Repassword" runat="server" ErrorMessage="两次输入的密码不一致。"></asp:CompareValidator><br />
        班级：<asp:DropDownList ID="ClassIn" runat="server">
            <asp:ListItem>Z070415</asp:ListItem>
            <asp:ListItem>Z070416</asp:ListItem>
            <asp:ListItem>Z070417</asp:ListItem>
            <asp:ListItem>Z070418</asp:ListItem>
        </asp:DropDownList>*<br />
        性别：<asp:DropDownList ID="Sex" runat="server">
            <asp:ListItem>男</asp:ListItem>
            <asp:ListItem>女</asp:ListItem>
        </asp:DropDownList><br />
        年龄：<asp:TextBox ID="Age" runat="server" Width="70px"></asp:TextBox><br />
        E-mail：<asp:TextBox ID="Email" runat="server"></asp:TextBox>(* 找回密码时发送到您的邮箱)<asp:RequiredFieldValidator
            ID="RequiredFieldValidator1" ControlToValidate="Email" runat="server" ErrorMessage="请输入您的邮箱。"></asp:RequiredFieldValidator><br />
        联系电话：<asp:TextBox ID="Phone" runat="server"></asp:TextBox><br />
        安全码：<asp:TextBox ID="SecurityNo" runat="server"></asp:TextBox>(* 安全码用来找回您的密码。)
        <asp:RequiredFieldValidator ControlToValidate="SecurityNo" ID="SecurityNoRequiredFieldValidator" runat="server" ErrorMessage="请输入您的安全码。"></asp:RequiredFieldValidator><br />
        <br />
        <asp:Button ID="BtnRegister" runat="server" Text="注册" OnClick="BtnRegister_Click" />
        <asp:Button ID="BtnCancel" runat="server" Text="取消" />
        <br />
       
    </form>
     <asp:Label ID="msg" runat="server" Visible="False" />
</body>
</html>
